﻿@{
    ViewBag.Title = "小类维护";
    Layout = "~/Areas/Admin/Views/Shared/_RightLayout.cshtml";
}
	<form id="listForm" method="get" action="/Admin/Subclass/List?Classid=@Request.QueryString["classid"]">
	<div id="toolBar">
        <a class="add" href="/Admin/Subclass/Edit?Classid=@Request.QueryString["classid"]"><span>添加</span></a>
		<a class="delete" href="javascript:void()" rel="/Admin/Subclass/Delete?Classid=@Request.QueryString["classid"]"><span>删除</span></a>
	</div>
	<div id="list">
		<table>
			<tr>
                <th style="width: 25px;" align="center" title="全选/取消">
                    <input type="checkbox" id="select_all" onclick="sel_all()"/>
                </th>
                <th>大类</th>
                <th>简体中文</th>
                <th>繁体中文</th>
                <th>英文</th>
                <th>图片地址(简体中文)</th>
                <th>图片地址(繁体中文)</th>
                <th>图片地址(英文)</th>
                <th>小类自定义地址</th>
                <th>创建者</th>
                <th>更新者</th>
                <th>显示顺序</th>
                @*<th class="thDateTime">
                    最后更新时间
                </th>
                <th class="thDateTime">
                    创建时间
                </th>*@
                <th style="width: 60px;" align="center">
                    操作
                </th>
            </tr>
            @foreach(var data in Model) 
               {
            <tr>
                <td align="center"><input type="checkbox" name="ids" value="@data.Id" /></td>
                <td>@(CacheHelper<tb_topclass>.GetById(data.TopClassId).Name_Zh_cn)</td>        
                <td>@data.Name_Zh_cn</td>
                <td>@data.Name_Zh_tw</td>
                <td>@data.Name_En_us</td>
                <td>@data.PicUrl_Zh_cn</td>
                <td>@data.PicUrl_Zh_tw</td>
                <td>@data.PicUrl_En_us</td>
                <td>@data.ClassUrl</td>
                <td>@data.CreateBy</td>
                <td>@data.UpdateBy</td>
                <td>@data.DisplayOrder</td>
                @*<td class="tdDateTime">@data.UpdateDate</td>
                <td class="tdDateTime">@data.CreateDate</td>*@
                <td>
                    <a href="/Admin/Subclass/Edit/@data.Id?classid=@Request.QueryString["classid"]" title="修改小类" >修改</a>
                    <a href="/Admin/Subclass/Detail/@data.Id" title="查看小类详细信息" >详细</a>
                </td>
            </tr>
            }
		</table>
	</div>
	@Html.Raw(PageControl.Render(Model))
	</form>
